<?php

use yii\db\Migration;
use yii\db\Schema;

class m170616_065935_ADD_COLUMN_ORDER_CUSTOMER_PASSPORT_CHECK extends Migration
{
    public function up()
    {

         $this->addColumn('{{order_customer}}', 'passport_check', Schema::TYPE_INTEGER. "(1)  DEFAULT  '1' COMMENT '1 未审核 2 审核通过  3 审核失败' ");
    }

    public function down()
    {
        echo "m170616_065935_ADD_COLUMN_ORDER_CUSTOMER_PASSPORT_CHECK cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
